package com.hspedu.Standard;

import java.util.Scanner;

/**
 * @Author Stringzhua
 * @Date 2024/3/17 12:51
 * description:标准输入输出流
 */
public class InputAndOutput {
    public static void main(String[] args) {
        //System 类的 public final static InputStream in = null;
        //System.in 编译类型 InputStream-->class java.io.BufferedInputStream
        System.out.println(System.in);
        //System.in 运行类型 BufferedInputStream -->java.io.BufferedInputStream@6e0be858
        System.out.println(System.in.getClass());
        //表示的是标准输入,键盘

        //解读:
        //1.public final static PrintStream out = null;
        //2.编译类型 PrintStream
        //3.运行类型
        //4.表示标准输出,显示器
        System.out.println(System.out);
        System.out.println(System.out.getClass());

        System.out.println("hello,韩顺平教育~");

        Scanner scanner = new Scanner(System.in);
        System.out.println("输入内容");
        String next = scanner.next();
        System.out.println("next = " + next);

    }
}
